import React from 'react';
import { connect } from 'dva';
import styles from './Goods.css';
import GoodsApp from '../components/GoodsApp';
import GoodsTable from '../components/GoodsTable';

function Goods(props) {
  // console.log(props)
  return (
    <div className={styles.normal}>
      <GoodsApp {...props}/>
    </div>
  );
}

function mapStateToProps(state) {
  return {
    goods:state.goods
  };
}

export default connect(mapStateToProps)(Goods);
